Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable storage service encrypted endpoint #157

Open
wants to merge 8 commits into
base: next
Choose a base branch
from

Conversation

huynguyen-hl
Copy link
Contributor

@huynguyen-hl huynguyen-hl commented Nov 12, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR enables the mock-app to use the encrypted endpoint of the storage service. It also updates all process functions to utilize the constructVerifyURL function, so the registerLinkResolver function no longer handles URL construction logic, making the code clearer and easier to maintain. All related unit tests and documentation have been updated accordingly. Additionally, the resultPath setting in the storage configuration of app-config.json has been removed, as it is no longer needed.

Related Tickets & Documents

https://github.com/gs-gs/fa-ag-trace/issues/694
https://github.com/gs-gs/fa-ag-trace/issues/695

Mobile & Desktop Screenshots/Recordings

  • Using the unencrypted endpoint (/v1/documents):

Issue DPP:

image image
  • Using the encrypted endpoint (v1/credentials):

Issue DPP:

image image

Failed to decrypt the encrypted VC:

image

Failed to compare the hash in the verify URL with the VC hash:

image

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“– mock-app docs site
  • πŸ“œ README.md
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

Copy link

github-actions bot commented Nov 12, 2024

Code Coverage Report

Lines Statements Branches Functions
Coverage: 81%
80.52% (2803/3481) 66.66% (540/810) 74.03% (308/416)
Title Lines Statements Branches Functions
All packages Coverage: 81%
80.52% (2803/3481) 66.66% (540/810) 74.03% (308/416)
Components Coverage: 85%
84.85% (510/601) 73.75% (118/160) 77.04% (94/122)
Mock app Coverage: 71%
71.89% (371/516) 53.23% (74/139) 68.14% (77/113)
Services Coverage: 79%
77.19% (934/1210) 60.17% (210/349) 74.41% (96/129)
UNTP test suite Coverage: 57%
57.86% (1001/1730) 82.63% (138/167) 71.92% (41/57)
VC test suite Coverage: 7%
7.4% (12/162) 7.4% (2/27)

namhoang1604
namhoang1604 previously approved these changes Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants